/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DBLayer;

import ModelLayer.Product;
import java.util.ArrayList;

/**
 *
 * @author Tommy
 */
public interface IFDBProduct {
    // get all Product
    public ArrayList getAllProduct(boolean retriveAssociation);
    //get one Product having the ID
    public Product findProduct(int ID, boolean retriveAssociation);
    //find one Product having the Product name
    public Product searchProductOnName(String name, boolean retriveAssociation);
    //insert new Product
    public int insert(Product prod);
    //update Product
    public int update(Product prod);
    //delete Product
    public int delete(Product prod);
}
